home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _20C1B5E942A2470EABBF11C8F4A5C915 < prev    next >
Encoding:
Text File  |  2004-01-06  |  4.4 KB  |  115 lines

  1.  
  2. function PipeManager:OnInitTony()
  3.     System:Log("INITTonyCALLED");
  4.  
  5.  
  6.  
  7. --        AI:CreateGoalPipe("patrol_fort");
  8. --        AI:PushGoal("patrol_fort","locate",0,"corner1");
  9. --        AI:PushGoal("patrol_fort","ignoreall",0,1);
  10. --        AI:PushGoal("patrol_fort","acqtarget",1,"");
  11. --        AI:PushGoal("patrol_fort","approach",1,2);
  12. --        AI:PushGoal("patrol_fort","ignoreall",0,0);
  13. --        AI:PushGoal("patrol_fort","timeout",1,2);
  14. --        AI:PushGoal("patrol_fort","bodypos",1,0);
  15. --        AI:PushGoal("patrol_fort","ignoreall",0,1);
  16. --        AI:PushGoal("patrol_fort","locate",0,"corner2");
  17. --        AI:PushGoal("patrol_fort","ignoreall",0,1);
  18. --        AI:PushGoal("patrol_fort","acqtarget",1,"");
  19. --        AI:PushGoal("patrol_fort","approach",1,2);
  20. --        AI:PushGoal("patrol_fort","ignoreall",0,0);
  21. --        AI:PushGoal("patrol_fort","timeout",1,2);
  22. --        AI:PushGoal("patrol_fort","bodypos",1,0);
  23. --        AI:PushGoal("patrol_fort","ignoreall",0,1);
  24. --        AI:PushGoal("patrol_fort","locate",0,"corner3");
  25. --        AI:PushGoal("patrol_fort","ignoreall",0,1);
  26. --        AI:PushGoal("patrol_fort","acqtarget",1,"");
  27. --        AI:PushGoal("patrol_fort","approach",1,2);
  28. --        AI:PushGoal("patrol_fort","ignoreall",0,0);
  29. --        AI:PushGoal("patrol_fort","timeout",1,2);
  30. --        AI:PushGoal("patrol_fort","bodypos",1,0);
  31. --        AI:PushGoal("patrol_fort","ignoreall",0,1);
  32. --        AI:PushGoal("patrol_fort","locate",0,"corner2");
  33. --        AI:PushGoal("patrol_fort","ignoreall",0,1);
  34. --        AI:PushGoal("patrol_fort","acqtarget",1,"");
  35. --        AI:PushGoal("patrol_fort","approach",1,2);
  36. --        AI:PushGoal("patrol_fort","ignoreall",0,0);
  37. --        AI:PushGoal("patrol_fort","timeout",1,2);
  38. --        AI:PushGoal("patrol_fort","bodypos",1,0);
  39. --        AI:PushGoal("patrol_fort","ignoreall",0,1);
  40. --        AI:PushGoal("patrol_fort","locate",0,"corner1");
  41. --        AI:PushGoal("patrol_fort","ignoreall",0,1);
  42. --        AI:PushGoal("patrol_fort","acqtarget",1,"");
  43. --        AI:PushGoal("patrol_fort","approach",1,1);
  44. --        AI:PushGoal("patrol_fort","ignoreall",0,0);
  45. --        AI:PushGoal("patrol_fort","timeout",1,2);
  46. --        AI:PushGoal("patrol_fort","bodypos",1,0);
  47. --        AI:PushGoal("patrol_fort","ignoreall",0,1);
  48. --        AI:PushGoal("patrol_fort","locate",0,"firepoint");
  49. --        AI:PushGoal("patrol_fort","acqtarget",1,"");
  50. --        AI:PushGoal("patrol_fort","approach",1,2);
  51. --        AI:PushGoal("patrol_fort","ignoreall",0,0);
  52. --        AI:PushGoal("patrol_fort","timeout",1,5);    
  53.         
  54.         
  55. --    Tony sees the player and attacks from a good position - on top of the fort, ducking sometimes.
  56.         
  57.         AI:CreateGoalPipe("defend_fort");
  58.         AI:PushGoal("defend_fort","locate",0,"firepoint");
  59.         AI:PushGoal("defend_fort","ignoreall",0,1);
  60.         AI:PushGoal("defend_fort","acqtarget",1,"");
  61.         AI:PushGoal("defend_fort","run",0,1);
  62.         AI:PushGoal("defend_fort","stick",0,0.5);
  63.         AI:PushGoal("defend_fort","close_attack"); -- switch pipes
  64.         AI:PushGoal("defend_fort","timeout",1,5);
  65.         
  66.             
  67. --    Ernie patrols outside the fort, follows erniespath
  68.         
  69. --        AI:CreateGoalPipe("patrol_outside_fort");
  70. --        AI:PushGoal("patrol_outside_fort","pathfind",1,entity.Properties.pathname);
  71. --        AI:PushGoal("patrol_outside_fort","trace",1,1);
  72. --        AI:PushGoal("patrol_outside_fort","timeout",1,2);
  73.  
  74. --    Al patrols outside the fort, follows AlsPath
  75.         
  76.         AI:CreateGoalPipe("patrol_outside_fort_Al");
  77.         AI:PushGoal("patrol_outside_fort_Al","pathfind",1,"AlsPath");
  78.         AI:PushGoal("patrol_outside_fort_Al","trace",1,1);
  79.         
  80.         
  81.         
  82. --    Bert reinforces (goes to rally point then attacks)
  83.  
  84.         AI:CreateGoalPipe("get_to_rally");
  85.         AI:PushGoal("get_to_rally","run",0,1);
  86.         AI:PushGoal("get_to_rally","locate",0,"rally");
  87.         AI:PushGoal("get_to_rally","ignoreall",0,1);
  88.         AI:PushGoal("get_to_rally","acqtarget",1,"");
  89.         AI:PushGoal("get_to_rally","approach",1,2);
  90.         AI:PushGoal("get_to_rally","ignoreall",0,1);
  91.  
  92. --  close  rocket_attack
  93.     AI:CreateGoalPipe("rocket_attack");    
  94. --    AI:PushGoal("close_attack","ignoreall",0,1);
  95. --    AI:PushGoal("close_attack","acqtarget",0,"");
  96. --    AI:PushGoal("rocket_attack","bodypos",1,1);
  97.     AI:PushGoal("rocket_attack","firecmd",0,1);
  98. --    AI:PushGoal("rocket_attack","bodypos",0,0);    
  99.     AI:PushGoal("rocket_attack","run",0,1);
  100.     AI:PushGoal("rocket_attack","approach",1,25);
  101.     AI:PushGoal("rocket_attack","strafe",0,-1);        
  102.     AI:PushGoal("rocket_attack","timeout",1,1);
  103.     AI:PushGoal("rocket_attack","strafe",0,0);
  104. --    AI:PushGoal("close_attack","backoff",1,12);
  105.     AI:PushGoal("rocket_attack","strafe",0,1);                        
  106.     AI:PushGoal("rocket_attack","timeout",1,2);                        
  107.     AI:PushGoal("rocket_attack","strafe",0,0);                            
  108.     AI:PushGoal("rocket_attack","run",0,0);    
  109.     
  110.  
  111.         
  112.         
  113. end
  114.  
  115.